<?php
namespace app\index\controller;

use app\common\controller\Base;
use app\index\model\LLogin as LLoginModel;

/**
 * 游戏服务器
 */
class Llogin extends Base
{
    use \app\index\controller\traits\CurlRequest;

    protected $model;
    /**
     * 控制器初始化
     * @return   void
     */
    public function _initialize()
    {
        //基类授权
        //
        parent::_initialize();
        $this->model = new LLoginModel();
    }

    public function testGetDAU()
    {

        $date = '2017-11-24';
        $res  = $this->model->getDAU($date);

        dump($res);
    }

    public function testGetRET()
    {

        $reg_date  = '2017-11-24';
        $calc_date = '2017-11-25';
        $res       = $this->model->getRET($reg_date, $calc_date);

        dump($res);
    }

}
